package com.smooth.common.site.modules.sys.enums;

public enum SysAreaTypeEnum {
	COUNTRY(0, "国家"),
	PROVINCE(1, "省"),
	CITY(2, "城市"),
	AREA(3, "区"),
	;

	public Integer value;
	public String name;

	SysAreaTypeEnum(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static SysAreaTypeEnum getStatus(Integer value) {
		if (value != null) {
			SysAreaTypeEnum[] otypes = SysAreaTypeEnum.values();
			for (SysAreaTypeEnum memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
